package com.base.service.impl;

import com.base.mapper.voipmapper.PinganSubMapper;
import com.base.po.voip.PinganSub;
import com.base.po.voip.PinganSubExample;
import com.base.service.PinganSubService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("PinganSubService")
public class PinganSubServiceImpl implements PinganSubService {
    @Autowired
    PinganSubMapper pinganSubMapper;
    @Override
    public int countByExample(PinganSubExample example) {
        return pinganSubMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(PinganSubExample example) {
        return pinganSubMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return pinganSubMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(PinganSub record) {
        return pinganSubMapper.insert(record);
    }

    @Override
    public int insertSelective(PinganSub record) {
        return pinganSubMapper.insertSelective(record);
    }

    @Override
    public List<PinganSub> selectByExample(PinganSubExample example) {
        return pinganSubMapper.selectByExample(example);
    }

    @Override
    public PinganSub selectByPrimaryKey(Integer id) {
        return pinganSubMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(PinganSub record, PinganSubExample example) {
        return pinganSubMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(PinganSub record, PinganSubExample example) {
        return pinganSubMapper.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(PinganSub record) {
        return pinganSubMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(PinganSub record) {
        return pinganSubMapper.updateByPrimaryKey(record);
    }

    @Override
    public PinganSub selectByPinganId(String pignanId) {
        return pinganSubMapper.selectByPinganId(pignanId);
    }

    @Override
    public PinganSub selectByParentIdAndMobile(String parentid, String mobile) {
        return pinganSubMapper.selectByParentIdAndMobile(parentid, mobile);
    }
}
